package org.jumiz.javafx.client.util;

import java.util.concurrent.ConcurrentHashMap;

public final class CachingUtil {

    private static final ConcurrentHashMap<CachingKey, Object> cacheMap = new ConcurrentHashMap<>();

    public enum CachingKey {
        LAST_BANNER,

    }

    public static <T> T getObject(CachingKey key, Class<T> tClass) {
        return (T)cacheMap.get(key);
    }

    public static void putObject(CachingKey key, Object value) {
        cacheMap.put(key, value);
    }

}
